package com.diaosidadui.test02;

import java.util.Scanner;

public class OverLoad {
    public static void main(String[] args) {
        max(3,5);
        max(3,3);
        max(3,5);
        max(3,5);
        max(3,5);
        max(3.8,5.5);



    }
    //byte  short   int   long  double
    public static byte max(byte a,byte b){
        byte c = a>b?a:b;
        return c;
    }    public static short max(short a,short b){
        short c = a>b?a:b;
        return c;
    }    public static int max(int a,int b){
        int c = a>b?a:b;
        return c;
    }

    public static long max(long a, long b) {
        long c = a > b ? a : b;
        return c;
    }
    public static double max(double a, double b) {
        double c = a > b ? a : b;
        return c;
    }


}
